package com.dlc.shop.bean.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 财务—财务明细
 * @author SJL
 * @date 2020-08-18
 */
@Data
public class FinanceDetailsParam {

    @Schema(description = "开始时间" )
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @Schema(description = "结束时间" )
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @Schema(description = "订单号" )
    private String orderNumber;

    /**
     * @see com.dlc.shop.common.enums.PayType
     */
    @Schema(description = "支付方式 -1不限 0积分 1微信 2支付宝..." )
    @NotNull(message = "支付方式不能为空")
    private Integer payType;

    @Schema(description = "语言" )
    private Integer lang;
}
